package ModelLayer;

public class Contractor extends Person {

	private static int lastId = 0;
	private static final long serialVersionUID = 1L;

	public Contractor(String name, String address, long phone) {
		super(name, address, phone);
		setId(generateId());
	}
	
	public int generateId()
	{
		return ++lastId;
	}
	
	public static int getLastId()
	{
		return lastId;
	}
	
	public static void setLastId(int lastid)
	{
		lastId = lastid;
	}
}

